package org.dromara.business.modules.searchHistory.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.business.modules.searchHistory.domain.BuSearchHistory;
import org.dromara.business.modules.searchHistory.domain.vo.BuSearchHistoryVo;
import org.dromara.business.modules.searchHistory.domain.vo.SearchHistoryVo;
import org.dromara.business.modules.searchHistory.domain.vo.SearchVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 用户搜索历史记录Mapper接口
 *
 * @author ckk
 * @date 2025-11-10
 */
@Mapper
public interface BuSearchHistoryMapper extends BaseMapperPlus<BuSearchHistory, BuSearchHistoryVo> {

    Page<SearchHistoryVo> hotSearch(Page<BuSearchHistory> page);

    Page<SearchVo> search(Page<BuSearchHistory> page, @Param("keyword") String keyword);

}
